package me.out1kiss.www.web.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import me.out1kiss.www.web.swagger.Api2Swagger;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author hx
 */
@Api2Swagger
@Api(tags = "测试API2")
@RestController
@RequestMapping("/api/test2/")
public class Api2Controller {

    @ApiOperation("查询数据")
    @GetMapping("api1")
    public ResponseEntity<String> api1(@RequestParam Integer id) {
        return ResponseEntity.ok("SUCCESS");
    }
}
